-- GENERATED SPELL FOR [Spectral Researcher] --


function spell0_10499(pUnit, Event) --@Mana Burn,n/a--
pUnit:FullCastSpellOnTarget(17630,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10499', 604, 1)
end

function spell1_10499(pUnit, Event) --@Wail of Souls,n/a--
pUnit:FullCastSpellOnTarget(17631,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10499', 552, 1)
end

function Sorts_10499(pUnit, Event)
local choix_sorts_10499 = math.random(0, 1)
if choix_sorts_10499 == 0 then
pUnit:RegisterEvent('spell0_10499', 1, 1)
end
if choix_sorts_10499 == 1 then
pUnit:RegisterEvent('spell1_10499', 1, 1)
end
end

function mob10499_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10499', math.random(1500, 3000), 1)
end

function mob10499_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10499_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10499_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10499, 1, 'mob10499_Action')
RegisterUnitEvent(10499, 2, 'mob10499_Leave')
RegisterUnitEvent(10499, 3, 'mob10499_Kill')
RegisterUnitEvent(10499, 4, 'mob10499_Die')
